/*libAssembly
 flag1表示直接从API获取数值，并根据阈值有无判断颜色
 flag2表示直接从API获取数值并进行颜色判断
 */
var libAssembly = [
    {
        $elm: $("#G08_H50_DayTarget_F0_Assembly"),
        dbId: 'H50_F0_Day_display',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G08_H50_CurrentTarget_F0_Assembly"),
        dbId: 'H50F0CurrentTarget',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G08_H50_ActualVolume_F0_Assembly"),
        dbId: 'apipsp71.PPE089',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G08_H50_Deviation_F0_Assembly"),
        dbId: 'H50F0RED',
        threshold: 0,
        flag: 1
    },
    {
        $elm: $("#G08_H50_DayTarget_F1_Assembly"),
        dbId: 'H50_F1_Day_display',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G08_H50_CurrentTarget_F1_Assembly"),
        dbId: 'H50F1CurrentTarget',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G08_H50_ActualVolume_F1_Assembly"),
        dbId: 'apipsp71.PPE080',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G08_H50_Deviation_F1_Assembly"),
        dbId: 'H50F1RED',
        threshold: 0,
        flag: 1
    },
    {
        $elm: $("#G08_H52_DayTarget_F0_Assembly"),
        dbId: '52F0DTAR',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G08_H52_CurrentTarget_F0_Assembly"),
        dbId: 'H52 F0 Current Target',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G08_H52_ActualVolume_F0_Assembly"),
        dbId: 'apipsp71.PPE092',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G08_H52_Deviation_F0_Assembly"),
        dbId: '52F0DIFF',
        threshold: 0,
        flag: 1
    },
    {
        $elm: $("#G08_H52_DayTarget_F1_Assembly"),
        dbId: '52DTARGE',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G08_H52_CurrentTarget_F1_Assembly"),
        dbId: 'H52 F1 Current Target',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G08_H52_ActualVolume_F1_Assembly"),
        dbId: 'apipsp71.PPE083',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G08_H52_Deviation_F1_Assembly"),
        dbId: 'A812DIFF',
        threshold: 0,
        flag: 1
    },
    {
        $elm: $("#G08_Total_DayTarget_F2_Assembly"),
        dbId: 'G08TDTAR',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G08_Total_CurrentTarget_F2_Assembly"),
        dbId: 'G08F2TAR',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G08_Total_ActualVolume_F2_Assembly"),
        dbId: 'apipsp71.PPE086',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G08_Total_Deviation_F2_Assembly"),
        dbId: 'H50H52F2',
        threshold: 0,
        flag: 1
    },
    {
        $elm: $("#G38_DayTarget_F0_Assembly"),
        dbId: 'H55.DayTarget',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G38_CurrentTarget_F0_Assembly"),
        dbId: 'H55.B55.F0_CURRENT',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G38_ActualVolume_F0_Assembly"),
        dbId: 'H55.F0_Actual',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G38_Deviation_F0_Assembly"),
        dbId: 'H55.C55.F0.diff',
        threshold: 0,
        flag: 1
    },
    {
        $elm: $("#G38_DayTarget_F1_Assembly"),
        dbId: 'A55.F1.Dayvolume',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G38_CurrentTarget_F1_Assembly"),
        dbId: 'H55.B55.F1_CURRENT',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G38_ActualVolume_F1_Assembly"),
        dbId: 'H55.F1_Actual',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G38_Deviation_F1_Assembly"),
        dbId: 'H55.C55.F1_DIFF_PUSH',
        threshold: 0,
        flag: 1
    },
    {
        $elm: $("#G38_DayTarget_F2_Assembly"),
        dbId: 'A55.F2_target',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G38_CurrentTarget_F2_Assembly"),
        dbId: 'H55.B55.F2_CURRENT',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G38_ActualVolume_F2_Assembly"),
        dbId: 'H55.F2_Actual',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G38_Deviation_F2_Assembly"),
        dbId: 'H55.C55.F2.diff',
        threshold: 0,
        flag: 1
    }
];

// var libAssembly = [
//     {
//         $elm: $("#G08_DayTarget_F0_Assembly"),
//         dbId: '52F0DTAR',
//         threshold: 'none',
//         flag: 1
//     },
//     {
//         $elm: $("#G08_CurrentTarget_F0_Assembly"),
//         dbId: 'H52 F0 Current Target',
//         threshold: 'none',
//         flag: 1
//     },
//     {
//         $elm: $("#G08_ActualVolume_F0_Assembly"),
//         dbId: 'apipsp71.PPE092',
//         threshold: 'none',
//         flag: 1
//     },
//     {
//         $elm: $("#G08_Deviation_F0_Assembly"),
//         dbId: '52F0DIFF',
//         threshold: 0,
//         flag: 1
//     },
//     {
//         $elm: $("#G08_DayTarget_F1_Assembly"),
//         dbId: '52DTARGE',
//         threshold: 'none',
//         flag: 1
//     },
//     {
//         $elm: $("#G08_CurrentTarget_F1_Assembly"),
//         dbId: 'H52 F1 Current Target',
//         threshold: 'none',
//         flag: 1
//     },
//     {
//         $elm: $("#G08_ActualVolume_F1_Assembly"),
//         dbId: 'apipsp71.PPE083',
//         threshold: 'none',
//         flag: 1
//     },
//     {
//         $elm: $("#G08_Deviation_F1_Assembly"),
//         dbId: 'A812DIFF',
//         threshold: 0,
//         flag: 1
//     },
//     {
//         $elm: $("#G08_DayTarget_F2_Assembly"),
//         dbId: 'F2DAYTAR',
//         threshold: 'none',
//         flag: 1
//     },
//     {
//         $elm: $("#G08_CurrentTarget_F2_Assembly"),
//         dbId: 'F2CURTAR',
//         threshold: 'none',
//         flag: 1
//     },
//     {
//         $elm: $("#G08_ActualVolume_F2_Assembly"),
//         dbId: 'apipsp71.PPE086',
//         threshold: 'none',
//         flag: 1
//     },
//     {
//         $elm: $("#G08_Deviation_F2_Assembly"),
//         dbId: 'A912DIFF',
//         threshold: 0,
//         flag: 1
//     },
//     {
//         $elm: $("#G38_DayTarget_F0_Assembly"),
//         dbId: 'H55.DayTarget',
//         threshold: 'none',
//         flag: 1
//     },
//     {
//         $elm: $("#G38_CurrentTarget_F0_Assembly"),
//         dbId: 'H55.B55.F0_CURRENT',
//         threshold: 'none',
//         flag: 1
//     },
//     {
//         $elm: $("#G38_ActualVolume_F0_Assembly"),
//         dbId: 'H55.F0_Actual',
//         threshold: 'none',
//         flag: 1
//     },
//     {
//         $elm: $("#G38_Deviation_F0_Assembly"),
//         dbId: 'H55.C55.F0.diff',
//         threshold: 0,
//         flag: 1
//     },
//     {
//         $elm: $("#G38_DayTarget_F1_Assembly"),
//         dbId: 'A55.F1.Dayvolume',
//         threshold: 'none',
//         flag: 1
//     },
//     {
//         $elm: $("#G38_CurrentTarget_F1_Assembly"),
//         dbId: 'H55.B55.F1_CURRENT',
//         threshold: 'none',
//         flag: 1
//     },
//     {
//         $elm: $("#G38_ActualVolume_F1_Assembly"),
//         dbId: 'H55.F1_Actual',
//         threshold: 'none',
//         flag: 1
//     },
//     {
//         $elm: $("#G38_Deviation_F1_Assembly"),
//         dbId: 'H55.C55.F1_DIFF_PUSH',
//         threshold: 0,
//         flag: 1
//     },
//     {
//         $elm: $("#G38_DayTarget_F2_Assembly"),
//         dbId: 'A55.F2_target',
//         threshold: 'none',
//         flag: 1
//     },
//     {
//         $elm: $("#G38_CurrentTarget_F2_Assembly"),
//         dbId: 'H55.B55.F2_CURRENT',
//         threshold: 'none',
//         flag: 1
//     },
//     {
//         $elm: $("#G38_ActualVolume_F2_Assembly"),
//         dbId: 'H55.F2_Actual',
//         threshold: 'none',
//         flag: 1
//     },
//     {
//         $elm: $("#G38_Deviation_F2_Assembly"),
//         dbId: 'H55.C55.F2.diff',
//         threshold: 0,
//         flag: 1
//     }
// ];

/*libPaint
 flag1表示直接从API获取数值，并根据阈值进行颜色判断
 flag2表示求和(dbId + dbId1)得到数值
 flag3表示前两个数值相加后减去第三个值(dbId + dbId1 -dbId2)得到的数值并进行颜色判断
 flag4表示相减(dbId - dbId1)得到数值并进行颜色判断
 flag5表示相加后相减(dbId + dbId1 - dbId2 - dbId3)后得到的数值，并进行颜色判断
 */
var libPaint = [
    {
        $elm: $("#G38_DayTarget_Form_Bodyshop_PaintShop"),
        dbId: 'NEX_Bodyshop_Daily_Target_',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G38_CurrentTarget_Form_Bodyshop_PaintShop"),
        dbId: 'NEX_Bodyshop_Daily_Actual_Target_',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G38_ActualVolume_Form_Bodyshop_PaintShop"),
        dbId: 'NEX_Bodyshop_MF1_Daily_Volume',
        dbId1: 'NEX_Bodyshop_MF2_Daily_Volume',
        threshold: 'none',
        flag: 2
    },
    {
        $elm: $("#G38_Deviation_Form_Bodyshop_PaintShop"),
        dbId: 'NEX_Bodyshop_MF1_Daily_Volume',
        dbId1: 'NEX_Bodyshop_MF2_Daily_Volume',
        dbId2: 'NEX_Bodyshop_Daily_Actual_Target_',
        threshold: 0,
        flag: 3
    },
    {
        $elm: $("#G38_DayTarget_MPS_IN_PaintShop"),
        dbId: 'Daily_Target.PS_IN',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G38_CurrentTarget_MPS_IN_PaintShop"),
        dbId: 'Daily_Target_Current.PS_IN',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G38_ActualVolume_MPS_IN_PaintShop"),
        dbId: '319200Z1.SG01.CVI.PZ03',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G38_Deviation_MPS_IN_PaintShop"),
        dbId: '319200Z1.SG01.CVI.PZ03',
        dbId1: 'Daily_Target_Current.PS_IN',
        threshold: 0,
        flag: 4
    },
    {
        $elm: $("#G38_DayTarget_MPS_OUT_PaintShop"),
        dbId: 'Daily_Target.PS_OUT',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G38_CurrentTarget_MPS_OUT_PaintShop"),
        dbId: 'Daily_Target_Current.PS_OUT',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G38_ActualVolume_MPS_OUT_PaintShop"),
        dbId: '319114Z1._PLC.CVI.M0025',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G38_Deviation_MPS_OUT_PaintShop"),
        dbId: '319114Z1._PLC.CVI.M0025',
        dbId1: 'Daily_Target_Current.PS_OUT',
        threshold: 0,
        flag: 4
    },
    {
        $elm: $("#G38_DayTarget_To_Assembly_PaintShop"),
        dbId: 'H55.DayTarget',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G38_CurrentTarget_To_Assembly_PaintShop"),
        dbId: 'H55.B55.F0_CURRENT',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G38_ActualVolume_To_Assembly_PaintShop"),
        dbId: 'H55.F0_Actual',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G38_Deviation_To_Assembly_PaintShop"),
        dbId: 'H55.C55.F0.diff',
        threshold: 0,
        flag: 1
    },
    {
        $elm: $("#G08_DayTarget_Form_Bodyshop_PaintShop"),
        dbId: 'NBE_Bodyshop_Daily_Target_MF',
        dbId1: 'NBS_Bodyshop_Daily_Target_MF',
        threshold: 'none',
        flag: 2
    },
    {
        $elm: $("#G08_CurrentTarget_Form_Bodyshop_PaintShop"),
        dbId: 'NBE_Bodyshop_Daily_Actual_Target_MF',
        dbId1: 'NBS_Bodyshop_Daily_Actual_Target_MF',
        threshold: 'none',
        flag: 2
    },
    {
        $elm: $("#G08_ActualVolume_Form_Bodyshop_PaintShop"),
        dbId: 'NBE_Bodyshop_Daily_Volume_MF',
        dbId1: 'NBS_Bodyshop_Daily_Volume_MF',
        threshold: 'none',
        flag: 2
    },
    {
        $elm: $("#G08_Deviation_Form_Bodyshop_PaintShop"),
        dbId: 'NBE_Bodyshop_Daily_Volume_MF',
        dbId1: 'NBS_Bodyshop_Daily_Volume_MF',
        dbId2: 'NBE_Bodyshop_Daily_Actual_Target_MF',
        dbId3: 'NBS_Bodyshop_Daily_Actual_Target_MF',
        threshold: 0,
        flag: 5
    },
    {
        $elm: $("#G08_DayTarget_MPS_IN_PaintShop"),
        dbId: 'Daily_Target.PS_IN.G08',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G08_CurrentTarget_MPS_IN_PaintShop"),
        dbId: 'Daily_Target_Current.PS_IN.G08',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G08_ActualVolume_MPS_IN_PaintShop"),
        dbId: 'apipsp71.EVP306',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G08_Deviation_MPS_IN_PaintShop"),
        dbId: 'apipsp71.EVP306',
        dbId1: 'Daily_Target_Current.PS_IN.G08',
        threshold: 0,
        flag: 4
    },
    {
        $elm: $("#G08_DayTarget_MPS_OUT_PaintShop"),
        dbId: 'Daily_Target.PS_OUT.G08',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G08_CurrentTarget_MPS_OUT_PaintShop"),
        dbId: 'Daily_Target_Current.PS_OUT.G08',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G08_ActualVolume_MPS_OUT_PaintShop"),
        dbId: 'apipsp71.EVP307',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G08_Deviation_MPS_OUT_PaintShop"),
        dbId: 'apipsp71.EVP307',
        dbId1: 'Daily_Target_Current.PS_OUT.G08',
        threshold: 0,
        flag: 4
    },
    {
        $elm: $("#G08_DayTarget_To_Assembly_PaintShop"),
        dbId: '50DTARF0',
        dbId1: '52F0DTAR',
        threshold: 'none',
        flag: 2
    },
    {
        $elm: $("#G08_CurrentTarget_To_Assembly_PaintShop"),
        dbId: 'H50F0TAR',
        dbId1: 'H52 F0 Current Target',
        threshold: 'none',
        flag: 2
    },
    {
        $elm: $("#G08_ActualVolume_To_Assembly_PaintShop"),
        dbId: 'apipsp71.PPE089',
        dbId1: 'apipsp71.PPE092',
        threshold: 'none',
        flag: 2
    },
    {
        $elm: $("#G08_Deviation_To_Assembly_PaintShop"),
        dbId: 'H50DRDIS',
        dbId1: '52F0DIFF',
        threshold: 0,
        flag: 2
    }
];

/*libBody
 flag1表示直接从API获取数值，并根据阈值进行颜色判断
 flag2表示求和(dbId + dbId1)得到的数值
 flag3表示前两个数值相加后减去第三个值(dbId + dbId1 -dbId2)得到的数值并进行颜色判断
 flag4表示相减(dbId - dbId1)得到数值并进行颜色判断
 */
var libBody = [
    {
        $elm: $("#G38_DayTarget_BS_Start_BodyShop"),
        dbId: 'NEX_Bodyshop_Daily_Target_UBS',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G38_CurrentTarget_BS_Start_BodyShop"),
        dbId: 'NEX_Bodyshop_Daily_Actual_Target_UBS',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G38_ActualVolume_BS_Start_BodyShop"),
        dbId: 'NEX_Bodyshop_UBS_Daily_Volume',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G38_Deviation_BS_Start_BodyShop"),
        dbId: 'NEX_Bodyshop_UBS_Daily_Volume',
        dbId1: 'NEX_Bodyshop_Daily_Actual_Target_UBS',
        threshold: 0,
        flag: 4
    },
    {
        $elm: $("#G38_DayTarget_UnderBody_BodyShop"),
        dbId: 'NEX_Bodyshop_Daily_Target_UB',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G38_CurrentTarget_UnderBody_BodyShop"),
        dbId: 'NEX_Bodyshop_Daily_Actual_Target_UB',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G38_ActualVolume_UnderBody_BodyShop"),
        dbId: 'NEX_Bodyshop_UB_Daily_Volume',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G38_Deviation_UnderBody_BodyShop"),
        dbId: 'NEX_Bodyshop_UB_Daily_Volume',
        dbId1: 'NEX_Bodyshop_Daily_Actual_Target_UB',
        threshold: 0,
        flag: 4
    },
    {
        $elm: $("#G38_DayTarget_Framing_BodyShop"),
        dbId: 'NEX_Bodyshop_Daily_Target_FR',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G38_CurrentTarget_Framing_BodyShop"),
        dbId: 'NEX_Bodyshop_Daily_Actual_Target_FR',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G38_ActualVolume_Framing_BodyShop"),
        dbId: 'NEX_Bodyshop_FR_Daily_Volume',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G38_Deviation_Framing_BodyShop"),
        dbId: 'NEX_Bodyshop_FR_Daily_Volume',
        dbId1: 'NEX_Bodyshop_Daily_Actual_Target_FR',
        threshold: 0,
        flag: 4
    },
    {
        $elm: $("#G38_DayTarget_Metal_Finish_BodyShop"),
        dbId: 'NEX_Bodyshop_Daily_Target_',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G38_CurrentTarget_Metal_Finish_BodyShop"),
        dbId: 'NEX_Bodyshop_Daily_Actual_Target_',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G38_ActualVolume_Metal_Finish_BodyShop"),
        dbId: 'NEX_Bodyshop_MF1_Daily_Volume',
        dbId1: 'NEX_Bodyshop_MF2_Daily_Volume',
        threshold: 'none',
        flag: 2
    },
    {
        $elm: $("#G38_Deviation_Metal_Finish_BodyShop"),
        dbId: 'NEX_Bodyshop_MF1_Daily_Volume',
        dbId1: 'NEX_Bodyshop_MF2_Daily_Volume',
        dbId2: 'NEX_Bodyshop_Daily_Actual_Target_',
        threshold: 0,
        flag: 3
    },
    {
        $elm: $("#G08_DayTarget_BS_Start_BodyShop"),
        dbId: 'NBE_Bodyshop_Daily_Target_UBS',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G08_CurrentTarget_BS_Start_BodyShop"),
        dbId: 'NBE_Bodyshop_Daily_Actual_Target_UBS',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G08_ActualVolume_BS_Start_BodyShop"),
        dbId: 'NBE_Bodyshop_Daily_Volume_UBS',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G08_Deviation_BS_Start_BodyShop"),
        dbId: 'NBE_Bodyshop_Daily_Volume_UBS',
        dbId1: 'NBE_Bodyshop_Daily_Actual_Target_UBS',
        threshold: 0,
        flag: 4
    },
    {
        $elm: $("#G08_DayTarget_UnderBody_BodyShop"),
        dbId: 'NBE_Bodyshop_Daily_Target_UB',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G08_CurrentTarget_UnderBody_BodyShop"),
        dbId: 'NBE_Bodyshop_Daily_Actual_Target_UB',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G08_ActualVolume_UnderBody_BodyShop"),
        dbId: 'NBE_Bodyshop_Daily_Volume_UB',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G08_Deviation_UnderBody_BodyShop"),
        dbId: 'NBE_Bodyshop_Daily_Volume_UB',
        dbId1: 'NBE_Bodyshop_Daily_Actual_Target_UB',
        threshold: 0,
        flag: 4
    },
    {
        $elm: $("#G08_DayTarget_Framing_BodyShop"),
        dbId: 'NBE_Bodyshop_Daily_Target_FR3S',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G08_CurrentTarget_Framing_BodyShop"),
        dbId: 'NBE_Bodyshop_Daily_Actual_Target_FR3S',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G08_ActualVolume_Framing_BodyShop"),
        dbId: 'NBE_Bodyshop_Daily_Volume_FR3S',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G08_Deviation_Framing_BodyShop"),
        dbId: 'NBE_Bodyshop_Daily_Volume_FR3S',
        dbId1: 'NBE_Bodyshop_Daily_Actual_Target_FR3S',
        threshold: 0,
        flag: 4
    },
    {
        $elm: $("#G08_DayTarget_Metal_Finish_BodyShop"),
        dbId: 'NBE_Bodyshop_Daily_Target_MF',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G08_CurrentTarget_Metal_Finish_BodyShop"),
        dbId: 'NBE_Bodyshop_Daily_Actual_Target_MF',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G08_ActualVolume_Metal_Finish_BodyShop"),
        dbId: 'NBE_Bodyshop_Daily_Volume_MF',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#G08_Deviation_Metal_Finish_BodyShop"),
        dbId: 'NBE_Bodyshop_Daily_Volume_MF',
        dbId1: 'NBE_Bodyshop_Daily_Actual_Target_MF',
        threshold: 0,
        flag: 4
    },
    {
        $elm: $("#NBS_DayTarget_BS_Start_BodyShop"),
        dbId: 'NBS_Bodyshop_Daily_Target_UBS',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#NBS_CurrentTarget_BS_Start_BodyShop"),
        dbId: 'NBS_Bodyshop_Daily_Actual_Target_UBS',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#NBS_ActualVolume_BS_Start_BodyShop"),
        dbId: 'NBS_Bodyshop_Daily_Volume_UBS',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#NBS_Deviation_BS_Start_BodyShop"),
        dbId: 'NBS_Bodyshop_Daily_Volume_UBS',
        dbId1: 'NBS_Bodyshop_Daily_Actual_Target_UBS',
        threshold: 0,
        flag: 4
    },
    {
        $elm: $("#NBS_DayTarget_UnderBody_BodyShop"),
        dbId: 'NBS_Bodyshop_Daily_Target_UB',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#NBS_CurrentTarget_UnderBody_BodyShop"),
        dbId: 'NBS_Bodyshop_Daily_Actual_Target_UB',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#NBS_ActualVolume_UnderBody_BodyShop"),
        dbId: 'NBS_Bodyshop_Daily_Volume_UB',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#NBS_Deviation_UnderBody_BodyShop"),
        dbId: 'NBS_Bodyshop_Daily_Volume_UB',
        dbId1: 'NBS_Bodyshop_Daily_Actual_Target_UB',
        threshold: 0,
        flag: 4
    },
    {
        $elm: $("#NBS_DayTarget_Framing_BodyShop"),
        dbId: 'NBS_Bodyshop_Daily_Target_FR3S',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#NBS_CurrentTarget_Framing_BodyShop"),
        dbId: 'NBS_Bodyshop_Daily_Actual_Target_FR3S',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#NBS_ActualVolume_Framing_BodyShop"),
        dbId: 'NBS_Bodyshop_Daily_Volume_FR3S',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#NBS_Deviation_Framing_BodyShop"),
        dbId: 'NBS_Bodyshop_Daily_Volume_FR3S',
        dbId1: 'NBS_Bodyshop_Daily_Actual_Target_FR3S',
        threshold: 0,
        flag: 4
    },
    {
        $elm: $("#NBS_DayTarget_Metal_Finish_BodyShop"),
        dbId: 'NBS_Bodyshop_Daily_Target_MF',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#NBS_CurrentTarget_Metal_Finish_BodyShop"),
        dbId: 'NBS_Bodyshop_Daily_Actual_Target_MF',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#NBS_ActualVolume_Metal_Finish_BodyShop"),
        dbId: 'NBS_Bodyshop_Daily_Volume_MF',
        threshold: 'none',
        flag: 1
    },
    {
        $elm: $("#NBS_Deviation_Metal_Finish_BodyShop"),
        dbId: 'NBS_Bodyshop_Daily_Volume_MF',
        dbId1: 'NBS_Bodyshop_Daily_Actual_Target_MF',
        threshold: 0,
        flag: 4
    }
];

var libPressDD = [
    {
        $elm: $("#Daily_SPH_target_GP1965"),
        bdId: 'gp1965_daily_sph_target',
        flag: 1,
        threshold: 'none'
    },
    {
        $elm: $("#Current_SPH_GP1965"),
        bdId: 'gp1965_current_sph',
        flag: 1,
        threshold: 'none'
    },
    {
        $elm: $("#SPH_Deviation_GP1965"),
        bdId: 'gp1965_sph_deviation',
        flag: 2,
        threshold: 0,
        ida: 'gp1965_current_sph',
        idb: 'gp1965_daily_sph_target'
    },
    {
        $elm: $("#Daily_uptime_target_GP1965"),
        bdId: 'gp1965_daily_uptime_target',
        flag: 3,
        threshold: 'none'
    },
    {
        $elm: $("#Current_uptime_GP1965"),
        bdId: 'gp1965_current_uptime',
        flag: 3,
        threshold: 'none'
    },
    {
        $elm: $("#Uptime_deviation_GP1965"),
        bdId: 'gp1965_uptime_deviation',
        flag: 4,
        threshold: 0,
        ida: 'gp1965_current_uptime',
        idb: 'gp1965_daily_uptime_target'
    }
];

var libPressTX = [
    {
        $elm: $("#Daily_SPH_target_GP1930"),
        bdId: 'gp1930_daily_sph_target',
        flag: 1,
        threshold: 'none'
    },
    {
        $elm: $("#Current_SPH_GP1930"),
        bdId: 'gp1930_current_sph',
        flag: 1,
        threshold: 'none'
    },
    {
        $elm: $("#SPH_Deviation_GP1930"),
        bdId: 'gp1930_sph_deviation',
        flag: 2,
        threshold: 0,
        ida: 'gp1930_current_sph',
        idb: 'gp1930_daily_sph_target'
    },
    {
        $elm: $("#Daily_uptime_target_GP1930"),
        bdId: 'gp1930_daily_uptime_target',
        flag: 3,
        threshold: 'none'
    },
    {
        $elm: $("#Current_uptime_GP1930"),
        bdId: 'gp1930_current_uptime',
        flag: 3,
        threshold: 'none'
    },
    {
        $elm: $("#Uptime_deviation_GP1930"),
        bdId: 'gp1930_uptime_deviation',
        flag: 4,
        threshold: 0,
        ida: 'gp1930_current_uptime',
        idb: 'gp1930_daily_uptime_target'
    },
    {
        $elm: $("#Daily_SPH_target_GP1960"),
        bdId: 'gp1960_daily_sph_target',
        flag: 1,
        threshold: 'none'
    },
    {
        $elm: $("#Current_SPH_GP1960"),
        bdId: 'gp1960_current_sph',
        flag: 1,
        threshold: 'none'
    },
    {
        $elm: $("#SPH_Deviation_GP1960"),
        bdId: 'gp1960_sph_deviation',
        flag: 2,
        threshold: 0,
        ida: 'gp1960_current_sph',
        idb: 'gp1960_daily_sph_target'
    },
    {
        $elm: $("#Daily_uptime_target_GP1960"),
        bdId: 'gp1960_daily_uptime_target',
        flag: 3,
        threshold: 'none'
    },
    {
        $elm: $("#Current_uptime_GP1960"),
        bdId: 'gp1960_current_uptime',
        flag: 3,
        threshold: 'none'
    },
    {
        $elm: $("#Uptime_deviation_GP1960"),
        bdId: 'gp1960_uptime_deviation',
        flag: 4,
        threshold: 0,
        ida: 'gp1960_current_uptime',
        idb: 'gp1960_daily_uptime_target'
    },
    {
        $elm: $("#Daily_SPH_target_GP1961"),
        bdId: 'gp1961_daily_sph_target',
        flag: 1,
        threshold: 'none'
    },
    {
        $elm: $("#Current_SPH_GP1961"),
        bdId: 'gp1961_current_sph',
        flag: 1,
        threshold: 'none'
    },
    {
        $elm: $("#SPH_Deviation_GP1961"),
        bdId: 'gp1961_sph_deviation',
        flag: 2,
        threshold: 0,
        ida: 'gp1961_current_sph',
        idb: 'gp1961_daily_sph_target'
    },
    {
        $elm: $("#Daily_uptime_target_GP1961"),
        bdId: 'gp1961_daily_uptime_target',
        flag: 3,
        threshold: 'none'
    },
    {
        $elm: $("#Current_uptime_GP1961"),
        bdId: 'gp1961_current_uptime',
        flag: 3,
        threshold: 'none'
    },
    {
        $elm: $("#Uptime_deviation_GP1961"),
        bdId: 'gp1961_uptime_deviation',
        flag: 4,
        threshold: 0,
        ida: 'gp1961_current_uptime',
        idb: 'gp1961_daily_uptime_target'
    }
];